package com.xinsoft.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xinsoft.entity.dto.MesBomDTO;
import com.xinsoft.entity.dto.MesBomPageParam;
import com.xinsoft.entity.po.MesBom;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinsoft.entity.vo.MesBomVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
* @author hsm
* @description 针对表【mes_bom(BOM主表)】的数据库操作Service
* @createDate 2023-07-18 14:07:11
*/
public interface MesBomService extends IService<MesBom> {

    IPage<MesBomVo> findPageListByParam(MesBomPageParam param);

    MesBom addMesBom(MesBomDTO mesBomDTO);

    //判断编号否重复
    MesBom editMesBom(MesBomDTO mesBomDTO);

    void del(List<Integer> ids);

    MesBomDTO getMesBom(Integer id);

    void audit(List<Integer> ids);

    void deAudit(List<Integer> ids);


    JSONObject importExcel(MultipartFile multipartFile, HttpServletResponse response) throws IOException;

    void insertOrUpdateBatch(List<MesBom> mesBomList);
}
